var status = 0;

function action(c, b, a) {
    status++;
    if (status == 0) {
        cm.curNodeEventEnd(true);
        cm.setInGameDirectionMode(true, true);
        cm.setStandAloneMode(true);
        cm.playVideoByScript("phantom_memory.avi")
    } else {
        if (status === 1) {
            cm.inGameDirectionEvent_AskAnswerTime(1000)
        } else {
            if (status === 2) {
                cm.fieldEffect_ScreenMsg("phantom/mapname1");
                cm.inGameDirectionEvent_MoveAction(1);
                cm.inGameDirectionEvent_AskAnswerTime(1000)
            } else {
                if (status === 3) {
                    cm.inGameDirectionEvent_MoveAction(0);
                    cm.inGameDirectionEvent_AskAnswerTime(1000)
                } else {
                    if (status === 4) {
                        cm.inGameDirectionEvent_MoveAction(2);
                        cm.inGameDirectionEvent_AskAnswerTime(1000)
                    } else {
                        if (status === 5) {
                            cm.inGameDirectionEvent_MoveAction(0);
                            cm.inGameDirectionEvent_AskAnswerTime(1000)
                        } else {
                            if (status === 6) {
                                cm.inGameDirectionEvent_MoveAction(1);
                                cm.inGameDirectionEvent_AskAnswerTime(1000);
                                cm.effect_OnUserEff("Effect/OnUserEff.img/questEffect/phantom/tutorial")
                            } else {
                                if (status === 7) {
                                    cm.inGameDirectionEvent_MoveAction(0);
                                    cm.inGameDirectionEvent_AskAnswerTime(1000)
                                } else {
                                    if (status === 8) {
                                        cm.inGameDirectionEvent_MoveAction(2);
                                        cm.inGameDirectionEvent_AskAnswerTime(1000)
                                    } else {
                                        if (status === 9) {
                                            cm.inGameDirectionEvent_MoveAction(0);
                                            cm.inGameDirectionEvent_AskAnswerTime(1000)
                                        } else {
                                            if (status === 10) {
                                                cm.inGameDirectionEvent_MoveAction(1);
                                                cm.inGameDirectionEvent_AskAnswerTime(500)
                                            } else {
                                                if (status === 11) {
                                                    cm.inGameDirectionEvent_MoveAction(0);
                                                    cm.inGameDirectionEvent_AskAnswerTime(1000)
                                                } else {
                                                    if (status === 12) {
                                                        cm.sendNextSNoESC("决定的时间终于到了吗？")
                                                    } else {
                                                        if (status === 13) {
                                                            cm.sendNextSNoESC("还挺紧张的。是因为好久没活动了吗？当然，并不是说没有自信。")
                                                        } else {
                                                            if (status === 14) {
                                                                cm.sendNextSNoESC("准备应该全部结束了吧？要是再拖下去，耽误了时机的话，那就太丢脸了。虽然感觉还有点生疏，不过还是去试试看吧。")
                                                            } else {
                                                                if (status === 15) {
                                                                    cm.setInGameDirectionMode(false);
                                                                    cm.enableActions();
                                                                    cm.dispose()
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};